package com.aspose.words.maven;


import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jface.wizard.Wizard;
import org.eclipse.ui.INewWizard;
import org.eclipse.ui.IWorkbench;


public class AsposeMavenProjectWizard extends Wizard implements INewWizard {

	private AsposeMavenProjectWizardPage  wizardPage;		
	
	public AsposeMavenProjectWizard() {
		setWindowTitle("Aspose.Words Maven Project");
	}

	@Override
	public void init(IWorkbench workbench, IStructuredSelection selection) {
	}

	@Override
	public void addPages() {		
		super.addPages();	    	    
		wizardPage = new AsposeMavenProjectWizardPage();	    	 		 
	    addPage(wizardPage); 	    	    	    
	}
	
	@Override
	public boolean performFinish() {			        	    	    
		AsposeMavenProjectSupport.createProject(wizardPage.getProjectName(), wizardPage.getLocationURI(), wizardPage.getPackageName(), wizardPage.isDownloadExamplesChecked());	    
		return true;
	}


}
